<script>
    (function () {
        var width = document.documentElement.clientWidth;
        var style = document.createElement("style");
        if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
            style.innerHTML = "html{font-size: " + width / 750 + "px !important;}";
        } else {
            style.innerHTML = "html{font-size: 1px !important;width:750px;margin:0 auto;}";
        }
        document.head.appendChild(style);
    })();
</script>